package com.woniuxy.caradmin.mapper;

import com.woniuxy.caradmin.entity.pojo.Repairrecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author womenzu
 * @since 2020-12-07
 */
public interface RepairrecordMapper {
    //查询全部的加油记录
    public List<Repairrecord> selectAllReapairRecord();

    //1 分页查询
    public List<Repairrecord> selectAllBy(Repairrecord repairrecord);

    //根据车牌号模糊查询
    public List<Repairrecord> selectAllRepariRecordByVid(@Param("vehiclenum") String vehiclenum);

    //2 增加修理记录
    public int addRepairRecord(Repairrecord repairrecord);

    //5 修改加油记录
    public int updateRepairRecord(Repairrecord repairrecord);

    //3 删除加油记录
    public int deleteRepairRecord(@Param("id") Integer id);

    //4 根据id查询--为了修改使用
    public Repairrecord repairrecordById(@Param("id")Integer id);
}
